#ifndef _TYPES_H_
#define	_TYPES_H_

#ifndef	NULL
#define	NULL	((void *)0)
#endif

#ifndef	htons
#define	htons(x)	( (((x)>>8)&0x00FF) | (((x)<<8)&0xFF00) )
#endif

#define	countof(x)	(sizeof(x)/sizeof(x[0]))

#endif
